﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)]
public class VersionAttribute : System.Attribute
{
    private string vertionName;
    private string vertionComment;
        
    public string VertionName
    {
        get { return vertionName; }        
    }

    public string VertionComment
    {
        get { return vertionComment; }
    }

    
    public VersionAttribute(string name)
    {
        this.vertionName = name;
        this.vertionComment = String.Empty;
    }

    public VersionAttribute(string name,string comment)
    {
        this.vertionName = name;
        this.vertionComment = comment;
    }

    public override string ToString()
    {
        string result = this.vertionName + "\r\n" + this.vertionComment;
        return result;
    }
}

